package net.zjitc.bao;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @author 毛若颖
 * @date 2025/11/5 11:10
 */
@Component
@ConfigurationProperties(prefix = "book")
public class book {
    private static String name;
    private static String author;
    private static Float price;

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "book{" +
                "author='" + book.author + '\'' +
                ", name='" + book.name + '\'' +
                ", price=" + book.price +
                '}';
    }
}
